package com.cetc.nsfx.mapper;

import java.util.List;
import java.util.Map;

import com.cetc.nsfx.entity.SysRoles;
import com.cetc.nsfx.entity.SysAssignPrivs;
import com.cetc.nsfx.entity.SysMenu;
import com.cetc.nsfx.entity.SysPrivs;

/**
 * Created by Administrator on 2015/12/25 0025.
 */
public interface StationMapper {
	
	//岗位列表信息
	public List<SysRoles> getRoleList(Map<String,Object> params);
	public int getRoleListTotal(Map<String,Object> params);
	
	 public List<Map<String,Object>> getStationList(Map<String,String> params);
	 public List<Integer> getRoleSeq();
	 public void saveStationInfo(SysRoles station);
	 public void updStationInfo(SysRoles station);
	 public List<SysRoles> findByRoleCode(String roleCode);
	 public void delAssignPrivsByRoleCode(String roleCode);
	 public void delByRoleCode(String roleCode);
	 public void delByPrivsCode(String roleCode);
	 public void savePrivs(List<Map<String, Object>> privs);
	 public List<SysMenu> getSysMenu(Map<String,Object> params);
	 
	 
	 public List<SysPrivs> findByPrivsCode(String roleModal);
	 public void savePrivsInfo(SysPrivs privs);
	 public List<SysMenu> findByMenuParentCode(String parentCode);
	 public List<SysPrivs> findByRoleCodeAndResourceType(Map<String,String> params);
	 
	 public List<SysRoles> getSysRoleByPrincipalName(String principalName);
	 public List<SysAssignPrivs> getSysAssignPrivsByPrincipalName(String principalName);
	 
	 public List<Map<String,Object>> getRoleMenuName(String roleCode);
}
